import React, { Component } from 'react'
import './index.css';
import {Switch, Route, NavLink} from 'react-router-dom';
import QQTuiJian from '../QQTuiJian';
import QQSinger from '../QQSinger';
export default class index extends Component {
    render() {
        return (
            <div className="home-container">
                <NavLink to="/home" exact>首页</NavLink>
                <NavLink to="/home/singer">歌手</NavLink>
                <hr />
                <Switch>
                    <Route path="/home" exact component={QQTuiJian}  />
                    <Route path="/home/singer" component={QQSinger}  />
                </Switch>
            </div>
        )
    }
}
